﻿
@{
    ViewBag.Title = "REGSN";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var Cols = new Zephyr.Models.sys_roleMenuColumnMapService().GetCurrentUserMenuColumns();
}

@section scripts{
    <script src="/Content/js/viewModel/com.viewModel.search.js"></script>
    <script type="text/javascript">
        var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
        var viewModel = function(){ 
            com.viewModel.search.apply(this,arguments);
        }
        ko.bindingViewModel(new viewModel(data));
    </script>
}

    @Html.RenderToolbar()

    <div class="container_12" style="position:relative;">
        <div class="grid_1 lbl">SCHCODE</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.SCHCODE" class="z-txt " /></div>
        <div class="grid_1 lbl">PROSN</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.PROSN" class="z-txt " /></div>
        <div class="grid_1 lbl">DESCRIPTION</div>
        <div class="grid_2 val"><input type="text" data-bind="value:form.DESCRIPTION" class="z-txt " /></div>

        <div class="clear"></div>
        <div class="grid_1 lbl">&nbsp;</div>
        <div class="grid_2 val">&nbsp;</div>
        <div class="clear"></div>

        <div class="prefix_9" style="position:absolute;top:5px;height:0;">  
            <a id="a_search" href="#" class="buttonHuge button-blue" data-bind="click:searchClick" style="margin:0 15px;">查询</a> 
            <a id="a_reset"  href="#" class="buttonHuge button-blue" data-bind="click:clearClick">清空</a>
        </div>
    </div>
 
    <table data-bind="datagrid:grid">
            <thead>  
            <tr>  
                <th field="SCHCODE"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"SCHCODE") >SCHCODE</th>
                <th field="PROSN"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"PROSN") >PROSN</th>
                <th field="DESCRIPTION"    sortable="true" align="left"    width="80"     @Html.HideColumn(Cols,"DESCRIPTION") >DESCRIPTION</th>
            </tr>                            
        </thead>      
    </table>
 
